package com.duqc.web.controller;

import com.duqc.response.ResultMsg;
import com.duqc.web.service.TreeNodeService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TreeNodeController
 * @Description TreeNodeController
 * @Author duqc
 * @Date 2023/4/26
 **/

@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("tree/node")
public class TreeNodeController {

    private final TreeNodeService treeNodeService;

    /**
     * demo
     *
     * @return ResultMsg
     */
    @GetMapping(value = "/demo")
    public ResultMsg data() {
        return ResultMsg.success(this.treeNodeService.data());
    }


}
